package com.firewolf.dubbo.main;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.firewolf.s04.service.DeptService;
import com.firewolf.s04.service.FileService;
import com.firewolf.s04.service.UserService;

public class MultiProtocolConsumer {
	@SuppressWarnings("resource")
	public static void main(String[] args) throws Exception {

		ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext(new String[] { "consumer.xml" });
		UserService bean = ctx.getBean(UserService.class);
		System.out.println(bean.sayHello("liuxing"));
		FileService bean2 = ctx.getBean(FileService.class);
		System.out.println(bean2.checkFileExist("a.txt"));
		DeptService bean3 = ctx.getBean(DeptService.class);
		System.out.println(bean3.showDeptInfo());
	}
}
